Skip to content

fix(vendor/msgpack-cs): fix incorrect int32 serialization for negative values and default null parameters#8

Merged
prikolium-cfx merged 2 commits intocitizenfx:masterfrom
manups4e:master
Jul 30, 2025
Merged

fix(vendor/msgpack-cs): fix incorrect int32 serialization for negative values and default null parameters#8
prikolium-cfx merged 2 commits intocitizenfx:masterfrom
manups4e:master

Conversation

@manups4e
Copy link
Contributor

@manups4e manups4e commented Jul 2, 2025

  • Fix 1: Previously, values less than short.MinValue were incorrectly cast to short before writing as int32, causing data loss. This fix passes the original int value directly to preserve correctness.

  • Fix 2: Allows registration of events, exports, and callbacks with default values set to a null value

Copy link

@FabianTerhorst FabianTerhorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@manups4e manups4e changed the title fix(vendor/msgpack-cs): fix incorrect int32 serialization for negative values fix(vendor/msgpack-cs): fix incorrect int32 serialization for negative values and default null parameters Jul 30, 2025
@prikolium-cfx prikolium-cfx merged commit 8b07bda into citizenfx:master Jul 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants